/*
 * @authors :Bin Mei
 * @date    :2017-07-27
 * @description：客服系统
 */
import Auth from 'src/utils/requireAuth';


module.exports = {
	path: 'user',
  childRoutes: [
    require('./HelpCenter/route'),//帮助中心
		{
      path: 'success',
      getComponent(location, cb) {
        require.ensure([], (require) => {
          cb(null, require('./Success'));
        });
      },
      onEnter: (nextState, replace) => Auth(nextState, replace,{ title: '',class:'register-ok', requireAuth:true})
    }
	],
	// indexRoute: {
	// 	getComponent(location, cb) {
	// 		require.ensure([], (require) => {
	// 			cb(null, require('./Index'));
	// 		});
	// 	},
	// 	onEnter: (nextState, replace) => Auth(nextState, replace,{ title: '账户中心' })
	// }
}